home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ RIVA 128 1.xpl < prev    next >
Text File  |  1999-09-10  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Hardware\Video Cards\Riva 128"
  5. "NAME"="Heap Size"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Heap Size (MB)"
  9. "DESCRIPTION 1"="Some options for your Riva 128 3D card." 
  10. "DESCRIPTION 2"="If you have more than 64 MB of RAM this might boost your performance. Values range from 1 to 16 MB."
  11. "DESCRIPTION 3"="The more devoted RAM, the better the performance of your RIVA.
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"="Thanks to CptSiskoX!"
  16.  
  17.  
  18. sPC="HKLM\SOFTWARE\NVIDIA Corporation\OpenGL\"
  19. sV1="HKLM\SOFTWARE\NVIDIA Corporation\OpenGL\MaxPCITexHeapSize" 'DW 1 -16
  20. Sub Plugin_Initialize 
  21. if RegPathExists(sPC) then
  22.    i=RegReadValue(sV1)
  23.    SetUiElement 1,i
  24. else
  25.    Call Disable()
  26. end if   
  27. End Sub
  28.  
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33.  
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  i=GetUIElement(1)
  37.  if i>0 and i<17 then
  38.     Call RegWriteValue(sV1,i,2)
  39.     Call Restart()
  40.  else
  41.     Call MsgError("Please enter a value between 1 and 16")
  42.  end if
  43.  
  44.  
  45. End Sub
  46.  
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.  
  51.  
  52.  
  53.